package org.computumus.core.service.CodeService.impl;

import org.computumus.core.jdo.Script;
import org.computumus.core.service.CodeService.Code;

/**
 * Created by IntelliJ IDEA.
 * User: planadecu
 * Date: 25 juin 2010
 * Time: 19:20:26
 * To change this template use File | Settings | File Templates.
 */
class CodeImpl implements Code {
    private String code;
    private String id;

    public CodeImpl(Script script, String id) {
        byte[] code = script.getContent();
        this.code = new String(code);
    }

    public String getCode() {
        return code;
    }

    public String getId() {
        return id;
    }

    public void setCode(String code){
        this.code = code;
    }
}
